using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using AvaloniaApplication1.Models;
using AvaloniaApplication1.ViewModel;

namespace AvaloniaApplication1.Views
{
    public class TestMessageAggregatorWindow : Window
    {
        public TestMessageAggregatorWindow()
        {
            InitializeComponent();
#if DEBUG
#endif
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }

        private void BtnTestSendMessage_OnClick(object? sender, RoutedEventArgs e)
        {
            MessageAggregator<Student>.Publish(new Student(Guid.NewGuid().ToString("N"),"2"));
        }
    }
}
